package hiatao.puzzle.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class StatPagerAdapter extends FragmentPagerAdapter {

	private Fragment  fragments[];
	private FragmentManager fm;

	public StatPagerAdapter(FragmentManager fm, Fragment  fragments[]) {
		super(fm);
		this.fm = fm;
		this.fragments = fragments;
	}

	@Override
	public Fragment getItem(int arg0) {
		return fragments[arg0];
	}

	@Override
	public int getCount() {
		return fragments.length;
	}
}
